<div class="header1-in" >
        <div class="logo">
            <a href="#"><img src="/static/frontend/img/logo.jpg" alt="常泷度假区" /></a>
        </div>
        <div class="search">
            <div class="search-left">搜索关键词</div>
            <div class="search-center">
            <input type="text" class="tex1" placeholder="" />
            </div>
            <a href="" id="search"><div class="search-right"></div></a>
        </div>
        <div class="zuce">
            <a href="{$login}">{$user_name}|</a>
            <a href="/frontend/register/index">{$user_register}</a>&nbsp
            <a href="/frontend/login/logout">{$user_logout}</a>&nbsp
            
        </div>
</div>
<script type="text/javascript">
    $("#search").click(function(){
        var key=$('.tex1').val();
        $('#search').attr('href',"/frontend/search/search?key="+key);
    })
</script>